//
//  DrawMoneySureView.m
//  bitcoin
//
//  Created by caiyajun on 2018/5/14.
//  Copyright © 2018年 比特币. All rights reserved.
//

#import "DrawMoneySureView.h"
@interface DrawMoneySureView()
@property (weak, nonatomic) IBOutlet UIView *contentView;

@property (weak, nonatomic) IBOutlet UIButton *sureButton;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;

@end
@implementation DrawMoneySureView

+ (instancetype)xib
{
    return [[NSBundle mainBundle] loadNibNamed:@"DrawMoneySureView" owner:self options:nil][0];
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
    view.backgroundColor = [UIColor blackColor];
    view.alpha = 0.75;
    [self addSubview:view];
    self.alpha = 1;
    self.frame = CGRectMake(0, 0, ScreenWidth, ScreenHeight);
    [self addSubview:self.contentView];
    
    [self.sureButton setBackgroundImage:[UIImage imageWithColor:RGBColor(86, 54, 157)] forState:(UIControlStateHighlighted)];
    [self.cancelBtn setBackgroundImage:[UIImage imageWithColor:RGBColor(178, 121, 20)] forState:(UIControlStateHighlighted)];

}


- (IBAction)submitAction:(UIButton *)sender {
    
    if (self.submitActionBlock) {
        self.submitActionBlock(sender.tag);
    }
}




@end
